home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 003 / datefilt.arc / DATEFILT.DOC < prev    next >
Encoding:
Text File  |  1987-02-05  |  1.8 KB  |  42 lines

  1. DATE FILTER PROGRAM 
  2.     This is a quick and dirty implementation of something I've always
  3.     wanted -- an easy way to see new files or old files on a system.
  4.     Thru the use of pipes and redirection this utility and the CLEAR
  5.     utility below can be VERY useful tools for maintaining large
  6.     numbers of files.  
  7.     The program is a filter for output of Norton's Filefind command.
  8.     This command searchs the entire directory structure for a particular
  9.     file or wild-card.  The filters I've developed take this output
  10.     the convert or scan it for additional matching criteria.  The
  11.     date filter program with match greater than, less than or equal to
  12.     a given creation date.  For example:
  13.     To output all files created after Feb 1st 87 type:
  14.         ff | datefilt 3 02/01/87
  15.     The '3' represents a greater than (>) relation
  16.          1 represents less than (<)
  17.          2 represents equal to  (=)
  18.     To output all *.bak files created before this month type:
  19.         ff *.bak | datefilt 1 02/01/87
  20.     All *.doc files created today
  21.         ff *.doc | datefilt 2 02/05/87
  22.     All *.exe files created this year could be do by typing:
  23.         ff *.exe | datefilt 3 01/01/87 | datefilt 1 12/30/87
  24.     
  25.     
  26. CLEAR FILTER PROGRAM
  27.     The clear filter will take filefind output and convert it to
  28.     a batch file format including a DEL in front of each file in
  29.     the output. For example to create a batch file to clear any
  30.     *.bak file type:
  31.         ff *.bak | clear > temp.bat
  32.     You should be in the root directory before typing this command.
  33.     Note that no files will be deleted until temp.bat is run.
  34.     The two filters may be combined for added power.  For example to
  35.     delete any backup files before the beginning of the month is:
  36.         ff *.bak | datefilt 1 02/01/87 | clear > temp.bat
  37.     Running temp.bat will remove the desired files.
  38.     
  39.     
  40.     Have fun .....
  41.     
  42.